DIR_FILE=../git_version.h

echo "#ifndef GIT_VERSION_H" > $DIR_FILE
echo "#define GIT_VERSION_H" >> $DIR_FILE

echo "" >> $DIR_FILE
echo "" >> $DIR_FILE

echo -n "#define GIT_VERSION              0x" >> $DIR_FILE  && git log -n 1 --pretty="%h" >> $DIR_FILE
#echo -n "\"" >> $DIR_FILE


echo "" >> $DIR_FILE
echo "" >> $DIR_FILE

echo "#endif" >> $DIR_FILE




